package com.foreknow.service;

import com.foreknow.Dao.AdminDao;
import com.foreknow.Dao.impl.AdminDaoImpl;
import com.xianzhi.bean.Admin;

public class AdminServiceImpl {
    private AdminDao admindao;

    public void setAdmindao(AdminDao admindao) {
        this.admindao = admindao;
    }

    public void save(Admin admin) {
        admindao.add(admin);
    }

    public static void main(String[] args) {
        AdminServiceImpl service = new AdminServiceImpl();
        service.setAdmindao(new AdminDaoImpl());
        service.save(new Admin());

    }

}
